package com.hmall.model;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "mall_order")
public class MallOrder {
    /**
     * 订单id
     */
    @Id
    private Integer id;

    @Column(name = "device_type")
    private String deviceType;

    @Column(name = "purchase_type")
    private String purchaseType;

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(String purchaseType) {
        this.purchaseType = purchaseType;
    }

    public Integer getDealerId() {
        return dealerId;
    }

    public void setDealerId(Integer dealerId) {
        this.dealerId = dealerId;
    }

    @Column(name = "submit_person")
    private Integer submitPerson;

    @Column(name = "plan_check")
    private Integer planCheck;

    @Column(name = "send_date")
    private String sendDate;

    public String getSendDate() {
        return sendDate;
    }

    public void setSendDate(String sendDate) {
        this.sendDate = sendDate;
    }

    public Integer getSubmitPerson() {
        return submitPerson;
    }

    public void setSubmitPerson(Integer submitPerson) {
        this.submitPerson = submitPerson;
    }

    public Integer getPlanCheck() {
        return planCheck;
    }

    public void setPlanCheck(Integer planCheck) {
        this.planCheck = planCheck;
    }

    @Column(name = "dealer_id")
    private Integer dealerId;

    @Column(name = "exam_check")
    private Integer examCheck;

    @Column(name = "insert_status")
    private Integer insertStatus;

    public Integer getInsertStatus() {
        return insertStatus;
    }

    public void setInsertStatus(Integer insertStatus) {
        this.insertStatus = insertStatus;
    }

    public Integer getExamCheck() {
        return examCheck;
    }

    public void setExamCheck(Integer examCheck) {
        this.examCheck = examCheck;
    }

    /**
     * 订单号
     */
    @Column(name = "order_no")
    private Long orderNo;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "shipping_id")
    private Integer shippingId;

    /**
     * 实际付款金额,单位是元,保留两位小数
     */
    private BigDecimal payment;

    /**
     * 支付类型,1-在线支付
     */
    @Column(name = "payment_type")
    private Integer paymentType;

    /**
     * 运费,单位是元
     */
    private Integer postage;

    /**
     * 订单状态：审核中-10，未付款-30，未签合同-35，合同失效-36，已发货-40，已取消-0，已付款-20，交易完成-50；
     */
    private Integer status;
    private Integer status1;
    private Integer status2;
    private Integer status3;

    public Integer getStatus1() {
        return status1;
    }

    public void setStatus1(Integer status1) {
        this.status1 = status1;
    }

    public Integer getStatus2() {
        return status2;
    }

    public void setStatus2(Integer status2) {
        this.status2 = status2;
    }

    public Integer getStatus3() {
        return status3;
    }

    public void setStatus3(Integer status3) {
        this.status3 = status3;
    }

    /**
     * 支付时间
     */
    @Column(name = "payment_time")
    private Date paymentTime;

    /**
     * 发货时间
     */
    @Column(name = "send_time")
    private Date sendTime;

    /**
     * 交易完成时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 交易关闭时间
     */
    @Column(name = "close_time")
    private Date closeTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "memberToken")
    private String membertoken;

    /**
     * 配送方式code
     */
    @Column(name = "distCode")
    private Integer distcode;

    /**
     * 允许下单限时
     */
    @Column(name = "add_order_time")
    private Integer addOrderTime;

    /**
     * 是否启用 1 启用 2 禁用
     */
    private Integer enabled;

    /**
     * 留言
     */
    private String message;

    /**
     * 发票收件人
     */
    @Column(name = "Invoice_rec_person")
    private String invoiceRecPerson;

    /**
     * 发票收件人手机
     */
    @Column(name = "Invoice_rec_phone")
    private String invoiceRecPhone;

    /**
     * 发票所到地址
     */
    @Column(name = "Invoice_rec_address")
    private String invoiceRecAddress;

    /**
     * 拿样状态 1表示是 0表示否
     */
    @Column(name = "is_sample")
    private Integer isSample;

    /**
     * 店铺id
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 运单号
     */
    @Column(name = "waybill_no")
    private String waybillNo;

    /**
     * 物流公司
     */
    @Column(name = "logistics_company")
    private String logisticsCompany;

    /**
     * 获取订单id
     *
     * @return id - 订单id
     */
    public Integer getId() {
        return id;
    }

    @Column(name = "sales_organization")
    private String salesOrganization;

    @Column(name = "sales_type")
    private String salesType;

    @Column(name = "freight_payment_type")
    private String freightPaymentType;

    @Column(name = "payment_methods")
    private String paymentMethods;


    /**
     * 设置订单id
     *
     * @param id 订单id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取订单号
     *
     * @return order_no - 订单号
     */
    public Long getOrderNo() {
        return orderNo;
    }

    /**
     * 设置订单号
     *
     * @param orderNo 订单号
     */
    public void setOrderNo(Long orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return shipping_id
     */
    public Integer getShippingId() {
        return shippingId;
    }

    /**
     * @param shippingId
     */
    public void setShippingId(Integer shippingId) {
        this.shippingId = shippingId;
    }

    /**
     * 获取实际付款金额,单位是元,保留两位小数
     *
     * @return payment - 实际付款金额,单位是元,保留两位小数
     */
    public BigDecimal getPayment() {
        return payment;
    }

    /**
     * 设置实际付款金额,单位是元,保留两位小数
     *
     * @param payment 实际付款金额,单位是元,保留两位小数
     */
    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    /**
     * 获取支付类型,1-在线支付
     *
     * @return payment_type - 支付类型,1-在线支付
     */
    public Integer getPaymentType() {
        return paymentType;
    }

    /**
     * 设置支付类型,1-在线支付
     *
     * @param paymentType 支付类型,1-在线支付
     */
    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    /**
     * 获取运费,单位是元
     *
     * @return postage - 运费,单位是元
     */
    public Integer getPostage() {
        return postage;
    }

    /**
     * 设置运费,单位是元
     *
     * @param postage 运费,单位是元
     */
    public void setPostage(Integer postage) {
        this.postage = postage;
    }

    /**
     * 获取订单状态：审核中-10，未付款-30，未签合同-35，合同失效-36，已发货-40，已取消-0，已付款-20，交易完成-50；
     *
     * @return status - 订单状态：审核中-10，未付款-30，未签合同-35，合同失效-36，已发货-40，已取消-0，已付款-20，交易完成-50；
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置订单状态：审核中-10，未付款-30，未签合同-35，合同失效-36，已发货-40，已取消-0，已付款-20，交易完成-50；
     *
     * @param status 订单状态：审核中-10，未付款-30，未签合同-35，合同失效-36，已发货-40，已取消-0，已付款-20，交易完成-50；
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取支付时间
     *
     * @return payment_time - 支付时间
     */
    public Date getPaymentTime() {
        return paymentTime;
    }

    /**
     * 设置支付时间
     *
     * @param paymentTime 支付时间
     */
    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    /**
     * 获取发货时间
     *
     * @return send_time - 发货时间
     */
    public Date getSendTime() {
        return sendTime;
    }

    /**
     * 设置发货时间
     *
     * @param sendTime 发货时间
     */
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    /**
     * 获取交易完成时间
     *
     * @return end_time - 交易完成时间
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 设置交易完成时间
     *
     * @param endTime 交易完成时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取交易关闭时间
     *
     * @return close_time - 交易关闭时间
     */
    public Date getCloseTime() {
        return closeTime;
    }

    /**
     * 设置交易关闭时间
     *
     * @param closeTime 交易关闭时间
     */
    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return memberToken
     */
    public String getMembertoken() {
        return membertoken;
    }

    /**
     * @param membertoken
     */
    public void setMembertoken(String membertoken) {
        this.membertoken = membertoken;
    }

    /**
     * 获取配送方式code
     *
     * @return distCode - 配送方式code
     */
    public Integer getDistcode() {
        return distcode;
    }

    /**
     * 设置配送方式code
     *
     * @param distcode 配送方式code
     */
    public void setDistcode(Integer distcode) {
        this.distcode = distcode;
    }

    /**
     * 获取允许下单限时
     *
     * @return add_order_time - 允许下单限时
     */
    public Integer getAddOrderTime() {
        return addOrderTime;
    }

    /**
     * 设置允许下单限时
     *
     * @param addOrderTime 允许下单限时
     */
    public void setAddOrderTime(Integer addOrderTime) {
        this.addOrderTime = addOrderTime;
    }

    /**
     * 获取是否启用 1 启用 2 禁用
     *
     * @return enabled - 是否启用 1 启用 2 禁用
     */
    public Integer getEnabled() {
        return enabled;
    }

    /**
     * 设置是否启用 1 启用 2 禁用
     *
     * @param enabled 是否启用 1 启用 2 禁用
     */
    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    /**
     * 获取留言
     *
     * @return message - 留言
     */
    public String getMessage() {
        return message;
    }

    /**
     * 设置留言
     *
     * @param message 留言
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 获取发票收件人
     *
     * @return Invoice_rec_person - 发票收件人
     */
    public String getInvoiceRecPerson() {
        return invoiceRecPerson;
    }

    /**
     * 设置发票收件人
     *
     * @param invoiceRecPerson 发票收件人
     */
    public void setInvoiceRecPerson(String invoiceRecPerson) {
        this.invoiceRecPerson = invoiceRecPerson;
    }

    /**
     * 获取发票收件人手机
     *
     * @return Invoice_rec_phone - 发票收件人手机
     */
    public String getInvoiceRecPhone() {
        return invoiceRecPhone;
    }

    /**
     * 设置发票收件人手机
     *
     * @param invoiceRecPhone 发票收件人手机
     */
    public void setInvoiceRecPhone(String invoiceRecPhone) {
        this.invoiceRecPhone = invoiceRecPhone;
    }

    /**
     * 获取发票所到地址
     *
     * @return Invoice_rec_address - 发票所到地址
     */
    public String getInvoiceRecAddress() {
        return invoiceRecAddress;
    }

    /**
     * 设置发票所到地址
     *
     * @param invoiceRecAddress 发票所到地址
     */
    public void setInvoiceRecAddress(String invoiceRecAddress) {
        this.invoiceRecAddress = invoiceRecAddress;
    }

    /**
     * 获取拿样状态 1表示是 0表示否
     *
     * @return is_sample - 拿样状态 1表示是 0表示否
     */
    public Integer getIsSample() {
        return isSample;
    }

    /**
     * 设置拿样状态 1表示是 0表示否
     *
     * @param isSample 拿样状态 1表示是 0表示否
     */
    public void setIsSample(Integer isSample) {
        this.isSample = isSample;
    }

    /**
     * 获取店铺id
     *
     * @return shop_id - 店铺id
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * 设置店铺id
     *
     * @param shopId 店铺id
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    /**
     * 获取物流公司
     *
     * @return logistics_company - 物流公司
     */
    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    /**
     * 设置物流公司
     *
     * @param logisticsCompany 物流公司
     */
    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public String getSalesOrganization() {
        return salesOrganization;
    }

    public void setSalesOrganization(String salesOrganization) {
        this.salesOrganization = salesOrganization;
    }

    public String getSalesType() {
        return salesType;
    }

    public void setSalesType(String salesType) {
        this.salesType = salesType;
    }

    public String getFreightPaymentType() {
        return freightPaymentType;
    }

    public void setFreightPaymentType(String freightPaymentType) {
        this.freightPaymentType = freightPaymentType;
    }

    public String getPaymentMethods() {
        return paymentMethods;
    }

    public void setPaymentMethods(String paymentMethods) {
        this.paymentMethods = paymentMethods;
    }
}